]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Move "Clear" button to the start
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 10 Apr 2025 18:49:40 +0000 (20:49 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 27 Jun 2025 11:36:17 +0000 (11:36 +0000)
Aligning the button to the end is a bit odd after removing the
do-not-disturb switch, so move it to the start instead and make
it pill-shaped to align better with the popover.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3691>

data/theme/gnome-shell-sass/widgets/_message-list.scss
js/ui/calendar.js

index 65e328fbb3600c4702f1346812a86db36f9a447c..fa4dd58cfe74b8499065643315c0dbb0f509057e 100644 (file)
   padding-bottom: $base_padding;
   spacing: $base_padding;
   @extend %heading;
+
+  .message-list-clear-button {
+    border-radius: $forced_circular_radius;
+  }
 }
 
 // message notification group
index 936854c5acae5272da8c6a0309291517d3f23934..4ff0540ba744496a5a5ff8bba0fed1710422e967 100644 (file)
@@ -812,7 +812,7 @@ class CalendarMessageList extends St.Widget {
             label: _('Clear'),
             can_focus: true,
             x_expand: true,
-            x_align: Clutter.ActorAlign.END,
+            x_align: Clutter.ActorAlign.START,
             accessible_name: C_('action', 'Clear all notifications'),
         });
         this._clearButton.connect('clicked', () => {